import request from '@/utils/request'

export function getToken() {
  return request({
    url: '/qiniu/upload/token', // 假地址 自行替换
    method: 'get'
  })
}

export function getSalt(param) {
  return request({
    url: 'Authenticate/Get',
    method: 'get',
    params: param
  })
}

export function getJwtToken(data) {
  return request({
    url: 'Authenticate/Post',
    method: 'post',
    data: data
  })
}

export function refreshToken() {
  return request({
    url: 'Authenticate/RefreshToken',
    method: 'get'
  })
}

export function getCaptcha() {
  return request({
    url: 'UserManagement/GetCaptcha',
    method: 'get'
  })
}
